/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package it.tukano.swingdeco.containers;

import java.awt.Component;
import javax.swing.JTabbedPane;

/**
 *
 * @author utente3
 */
public class JTabbedPaneExt extends JTabbedPane {
    
    /* default serial version code */
    private static final long serialVersionUID = 0;
    
    public JTabbedPaneExt append(String title, Component c) {
        addTab(title, c);
        return this;
    }
    
    public JTabbedPaneExt appendAndShow(String title, Component c) {
        addTab(title, c);
        setSelectedComponent(c);
        return this;
    }
}
